const autoprefixer = require("autoprefixer");
const pxtorem = require("postcss-pxtorem");

module.exports = {
  outputDir: "dist",
  // publicPath: process.env.NODE_ENV === 'production' ? '/vant-demo/' : '/',
  publicPath: process.env.NODE_ENV === "production" ? "././" : "/",
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          autoprefixer(),
          pxtorem({
            rootValue: 36,
            // rootValue: 37.5,
            propList: ["*"]
          })
        ]
      }
    }
  }
};
